#pragma once

#include "Projectiles.h"
#include "ChainPoint.h"
#include "Emitter.h"

class ShadowHook : public Projectiles
{
public:
	ShadowHook();
	virtual ~ShadowHook();
	virtual int GetType() const { return ENT_GRAPPLE; }
	static Emitter hook;
	static Emitter anchorPoint;
	//Interface
	void Render();
	void Update(float elapsedTime);
	void SetChains();
	virtual void HandleCollision(const IEntity* other);
private:
	int maxReach;
	ChainPoint chains[400];
	bool attached = false;
	Entity * attachedObject = nullptr;
	
};